package com.ce.entity;

import java.io.Serializable;

import org.json.JSONObject;

import com.ce.utils.RefrectObject;

public class Consumption implements Serializable {

	private static final long serialVersionUID = -2972912715983562824L;
	private String approvedDate;
	private int approvedUserId;
	private String approvedUserName;
	private String camiedType;
	private String community;
	private String exit;
	private int hasapproved;
	private String orderNo;
	private String ordertime;
	private String payType;
	private String result;
	private String station;
	private float totalPrice;
	private String userAddress;
	private String userCode;
	private int userId;
	private String userMail;
	private String userName;
	private String userPhone;

	public void initComsumption(JSONObject jsonObject){
		if(jsonObject == null)
			throw new RuntimeException("JsonObject is null!");
		RefrectObject.initObjForJson(this, jsonObject);
	}


	public String getApprovedDate() {
		return approvedDate;
	}

	public void setApprovedDate(String approvedDate) {
		this.approvedDate = approvedDate;
	}

	public int getApprovedUserId() {
		return approvedUserId;
	}

	public void setApprovedUserId(int approvedUserId) {
		this.approvedUserId = approvedUserId;
	}

	public String getApprovedUserName() {
		return approvedUserName;
	}

	public void setApprovedUserName(String approvedUserName) {
		this.approvedUserName = approvedUserName;
	}

	public String getCamiedType() {
		return camiedType;
	}

	public void setCamiedType(String camiedType) {
		this.camiedType = camiedType;
	}

	public String getCommunity() {
		return community;
	}

	public void setCommunity(String community) {
		this.community = community;
	}

	public String getExit() {
		return exit;
	}

	public void setExit(String exit) {
		this.exit = exit;
	}

	public int getHasapproved() {
		return hasapproved;
	}

	public void setHasapproved(int hasapproved) {
		this.hasapproved = hasapproved;
	}

	public String getOrderNo() {
		return orderNo;
	}

	public void setOrderNo(String orderNo) {
		this.orderNo = orderNo;
	}

	public String getOrdertime() {
		return ordertime;
	}

	public void setOrdertime(String ordertime) {
		this.ordertime = ordertime;
	}

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getResult() {
		return result;
	}

	public void setResult(String result) {
		this.result = result;
	}

	public String getStation() {
		return station;
	}

	public void setStation(String station) {
		this.station = station;
	}

	public float getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(float totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getUserAddress() {
		return userAddress;
	}

	public void setUserAddress(String userAddress) {
		this.userAddress = userAddress;
	}

	public String getUserCode() {
		return userCode;
	}

	public void setUserCode(String userCode) {
		this.userCode = userCode;
	}

	public int getUserId() {
		return userId;
	}

	public void setUserId(int userId) {
		this.userId = userId;
	}

	public String getUserMail() {
		return userMail;
	}

	public void setUserMail(String userMail) {
		this.userMail = userMail;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getUserPhone() {
		return userPhone;
	}

	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	
	
}
